namespace Sahit.iSoilHotel.Infrastructure.DataAccess.MainBoundedContext.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class ChangeBuilding : DbMigration
    {
        public override void Up()
        {
            DropForeignKey("dbo.Room", "Building_ID", "dbo.Building");
            //DropIndex("dbo.Room", new[] { "Building_ID" });
            //DropColumn("dbo.Room", "Building_ID");
        }
        
        public override void Down()
        {
            AddColumn("dbo.Room", "Building_ID", c => c.Guid());
            CreateIndex("dbo.Room", "Building_ID");
            AddForeignKey("dbo.Room", "Building_ID", "dbo.Building", "ID");
        }
    }
}
